﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.OA
{
    public interface IBpmOaLeaveServices
    {
        public Task<IEnumerable<BpmOaLeave>> GetAllAsync();
        public Task<IEnumerable<BpmOaLeave>> GetAsync(int PageIndex, int PageSize, string LeaveType);
        public Task<int> GetCountAsync( string LeaveType);
        public Task<bool> UpdateAsync(BpmOaLeave model);
        public Task<bool> AddAsync(BpmOaLeave model);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
    }
}
